<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <f:facet name="first">
            <meta http-equiv="X-UA-Compatible" content="IE=edge" />
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <meta name="viewport" content="width=device-width, initial-scale=1.0, 
                  maximum-scale=1.0, user-scalable=0" />
            <meta name="apple-mobile-web-app-capable" content="yes" />
        </f:facet>
        <title>testtesttest</title>
    </h:head>
    <h:body>
       
        <p:notificationBar position="top" effect="slide" styleClass="top" widgetVar="bar">
             <h:form>  
            <p:growl id="messages"/>

            <p:menubar>
                <p:submenu label="文件" icon="ui-icon-document">
                    <p:submenu label="上传" icon="ui-icon-contact">
                        <p:menuitem value="文件" url="#" />
                        <p:menuitem value="图片" url="#" />
                    </p:submenu>
                    <p:menuitem value="打开" url="#" />
                    <p:separator />
                </p:submenu>

                <p:submenu label="设置" icon="ui-icon-pencil">
                    <p:menuitem value="Undo" url="#" icon="ui-icon-arrowreturnthick-1-w" />
                    <p:menuitem value="Redo" url="#" icon="ui-icon-arrowreturnthick-1-e" />
                </p:submenu>

                <p:submenu label="帮助" icon="ui-icon-help">
                    <p:menuitem value="Contents" url="#" />
                    <p:submenu label="Search" icon="ui-icon-search">
                        <p:submenu label="Text">
                            <p:menuitem value="Workspace" url="#" />
                        </p:submenu>
                        <p:menuitem value="File" url="#" />
                    </p:submenu>
                </p:submenu>

                <p:menuitem value="退出" url="http://www.primefaces.org" icon="ui-icon-close" />

                <f:facet name="options">
                    <p:inputText style="margin-right:10px" placeholder="Search"/>
                    <p:commandButton type="button" value="Logout" icon="ui-icon-extlink" />
                </f:facet>
            </p:menubar>
        </h:form>

        </p:notificationBar>
 
       
               <h2>员工管理</h2>
        <p:separator />
        <br/>
        <div>
            <h:form>
              <p:panelGrid columns="2" layout="grid"  >
                <h:panelGroup layout="block" style="">
                    <p:button value="新增" href="login.xhtml"></p:button>
                    <p:button value="离职" href="delete.xhtml"></p:button>
                    <p:button value="冻结" href="status.xhtml"></p:button>
                    <p:button value="解冻" href="return.xhtml"></p:button>
                    <p:button value="搜索" href="search.xhtml"></p:button>
                    <p:button value="扫码查询" href="barcode.xhtml"></p:button>
                    <p:button value="lazy" href="dataTableLazy.xhtml"></p:button>
                </h:panelGroup>
            </p:panelGrid>
            </h:form>    
            
        </div>
        <h:form id="form"> 
             <p:dataTable var="user" value="#{UserView.users}">
                <p:column headerText="姓名">
                    <h:outputText value="#{user.name}"/>
                </p:column>
                <p:column headerText="年龄">
                    <h:outputText value="#{user.age}"/>
                </p:column>
                <p:column headerText="城市">
                    <h:outputText value="#{user.contry}"/>
                </p:column>
                <p:column headerText="状态">
                    <h:outputText value="#{user.status}"/>
                </p:column>
            </p:dataTable>
            
        </h:form> 
    </h:body>
</html>